widget: Avoid some type checks when invalidating window
authorTimm Bäder <mail@baedert.org>
Sat, 14 Oct 2017 05:25:19 +0000 (07:25 +0200)
committerTimm Bäder <mail@baedert.org>
Sat, 14 Oct 2017 05:26:09 +0000 (07:26 +0200)
Use the private _gtk_widget_get_has_window instead of the public version

gtk/gtkwidget.c

index 8ef04bb5c1e17a4ad4cf6c3e41c3178db32e9068..1968ce4ce48224d585d796b5832e13d6fb57879c 100644 (file)
@@ -5267,7 +5267,7 @@ gtk_widget_queue_draw_region (GtkWidget            *widget,
 
   /* Look for the parent with a window and invalidate @region in there. */
   parent = widget;
-  while (parent != NULL && !gtk_widget_get_has_window (parent))
+  while (parent != NULL && !_gtk_widget_get_has_window (parent))
     parent = _gtk_widget_get_parent (parent);
 
   g_assert (parent != NULL);